import http from "@/utils/http";

// 分页
export const rolePage = (params)=> http.get('/adminapi/admin/role/page', params)

// 列表
export const roleList = ()=> http.get('/adminapi/admin/role/list')

// 详情
export const roleDetail = (id)=> http.get(`/adminapi/admin/role/detail/${id}`)

// 新增
export const roleAdd = (data)=> http.post('/adminapi/admin/role/add', data)

// 编辑
export const roleEdit = (data)=> http.post('/adminapi/admin/role/edit', data)